﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RapChieuPhim.DTO;
using RapChieuPhim.DAO;
using System.Collections;

namespace RapChieuPhim.BUS
{
    class SuatChieuBUS
    {
        public static SuatChieuDTO GetByID(int id)
        {
            SuatChieuDAO suatchieuDAO = new SuatChieuDAO();
            return suatchieuDAO.GetByID(id);
        }
        public static IList GetByPhong(int id)
        {
            SuatChieuDAO suatchieuDAO = new SuatChieuDAO();
            return suatchieuDAO.GetByPhong(id);
        }
        public static IList GetAll()
        {
            SuatChieuDAO suatchieuDAO = new SuatChieuDAO();
            return suatchieuDAO.GetAll();
        }

        public static void Insert(SuatChieuDTO SuatChieu)
        {
            SuatChieuDAO suatchieuDAO = new SuatChieuDAO();
            suatchieuDAO.Insert(SuatChieu);
        }

        public static void Update(SuatChieuDTO SuatChieu)
        {
            SuatChieuDAO suatchieuDAO = new SuatChieuDAO();
            suatchieuDAO.Update(SuatChieu);
        }

        public static void Delete(int id)
        {
            SuatChieuDAO suatchieuDAO = new SuatChieuDAO();
            suatchieuDAO.Delete(id);
        }
    }
}
